From 4a4593d3d33a00a2e8d1d3378361a435ba89e1f5 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 31 Dec 2006 01:32:02 +0000 Subject: [PATCH] fix regression -- bad query --- includes/Title.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Title.php b/includes/Title.php index 98e2dcefdd..40375a7707 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1335,7 +1335,7 @@ class Title { if( $this->exists() ) { if( !$this->mRestrictionsLoaded ) { $dbr =& wfGetDB( DB_SLAVE ); - $res = $dbr->selectField( 'page', 'page_restrictions', $this->getArticleId() ); + $res = $dbr->selectField( 'page', 'page_restrictions', array( 'page_id' => $this->getArticleId() ) ); $this->loadRestrictions( $res ); } return isset( $this->mRestrictions[$action] ) -- 2.20.1